<template>
	<div>
		
	<div style="margin: 20px;"></div>
	<el-form :label-position="labelPosition" label-width="80px" :model="formLabelAlign">
	  <el-form-item label="名称">
	    <el-input v-model="formLabelAlign.RoleName"></el-input>
	  </el-form-item>
	  <el-form-item label="职位">
	    <el-input v-model="formLabelAlign.Remark"></el-input>
	  </el-form-item>
	 <!-- <el-form-item label="是否正常">
	    <el-input v-model="formLabelAlign.IsDelete"></el-input>
	  </el-form-item> -->
	  <el-button type="success" @click="queren">确认</el-button>
	  
	</el-form>
	</div>
</template>

<script>
	import roleapi from '@/api/RoleApi.js'
	export default {
	    data() {
	      return {
	        labelPosition: 'right',
	        formLabelAlign: {
	          RoleName: '',
	          Remark: '',
	          IsDelete:''
	        }
	      };
	    },
		methods:{
			queren(){
				roleapi.Add(this.formLabelAlign).then(res=>{
					if(res.code>0)
					{
						this.$emit('close')
					}
				}).catch(err=>{
					console.log(err)
				})
			}
		}
	  }
</script>

<style>
</style>